import re
s = 'testing search'
reg = r'[a-zA-Z]+\b'
m = re.search(reg, s)
while m != None:
    start = m.start()
    end = m.end()
    print(s[start: end], end=' ')
    s = s[end:]
    m = re.search(reg, s)
